﻿using Hidistro.Entities.Commodities;
using Hidistro.SaleSystem.Catalog;
using Hidistro.SaleSystem.Comments;
using Hidistro.UI.Common.Controls;
using System;
using System.Data;
using System.Data.OleDb;
using System.Web.UI.WebControls;

namespace Hidistro.UI.SaleSystem.Tags
{
    public class yb_LatestReview : AscxTemplatedWebControl
    {
        protected override void AttachChildControls()
        {
            DataSet dt = ProductBrowser.GetUersPL();
            Repeater rp1 = (Repeater)this.FindControl("zr");
            Repeater rp2 = (Repeater)this.FindControl("ny");
            Repeater rp3 = (Repeater)this.FindControl("ny1");
            Repeater rp4 = (Repeater)this.FindControl("ys");
            Repeater rp5 = (Repeater)this.FindControl("fs");
            Repeater rp6 = (Repeater)this.FindControl("rh");
            Repeater rp7 = (Repeater)this.FindControl("tt");
            Repeater rp8 = (Repeater)this.FindControl("qq");

            rp1.DataSource = dt.Tables[0];
            rp1.DataBind();
            rp2.DataSource = dt.Tables[1];
            rp2.DataBind();
            rp3.DataSource = dt.Tables[2];
            rp3.DataBind();
            rp4.DataSource = dt.Tables[3];
            rp4.DataBind();
            rp5.DataSource = dt.Tables[4];
            rp5.DataBind();
            rp6.DataSource = dt.Tables[5];
            rp6.DataBind();
            rp7.DataSource = dt.Tables[6];
            rp7.DataBind();
            rp8.DataSource = dt.Tables[7];
            rp8.DataBind();
        }
        protected override void OnInit(EventArgs e)
        {
            if (this.SkinName == null)
            {
                this.SkinName = "/ascx/tags/yb_LatestReview.ascx";
            }
            base.OnInit(e);
        }
    }
}